package cn.edu.cug.cs.gtl.apis.ui.tree;

import cn.edu.cug.cs.gtl.apis.ui.AbstractApplication;
import cn.edu.cug.cs.gtl.apis.ui.projecttree.ProjectTree;

import javax.swing.*;
import java.awt.*;

public abstract class TreePanel extends JPanel {

    protected AbstractApplication theApp = null;
    protected Tree treeComponent = null;
    protected JScrollPane scrollPane = null;

    public TreePanel(AbstractApplication theApp, LayoutManager layout, boolean isDoubleBuffered) {
        super(layout, isDoubleBuffered);
        this.theApp=theApp;
    }

    public TreePanel(AbstractApplication theApp,LayoutManager layout) {
        super(layout);
        this.theApp=theApp;
    }

    public TreePanel(AbstractApplication theApp,boolean isDoubleBuffered) {
        super(isDoubleBuffered);
        this.theApp=theApp;
    }

    public TreePanel(AbstractApplication theApp) {
        setLayout(new BorderLayout());
        this.theApp=theApp;
    }

    public Tree getTreeComponent() {
        return treeComponent;
    }

    public abstract void initial();

    public abstract void reset(Object o);
}
